import request from "../utils/request.js";

/**
 * @description: 获取提现配置信息
 * @return {object}
 */
 export function withdrawSetInfoByApplet(params) {
  return request({
    url: '/financialManagement/withdrawSetInfoByApplet',
    method: 'get',
    data: params
  })
}

/**
 * @description: 用户提交提现申请
 * @return {object}
 */
 export function submitApply(params) {
  return request({
    url: '/financialManagement/submitApply',
    method: 'post',
    data: params
  })
}

/**
 * @description: 用户提交提现申请
 * @return {object}
 */
export function newSubmitApply(params) {
  return request({
    url: '/financialManagement/newSubmitApply',
    method: 'post',
    data: params
  })
}

/**
 * @description: 用户提现申请列表
 * @return {object}
 */
 export function userFundList(params) {
  return request({
    url: '/financialManagement/userFundList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 用户提现报表
 * @return {object}
 */
export function fundExportDetail(params) {
  return request({
    url: '/financialManagement/fundExportDetail',
    method: 'get',
    data: params
  })
}

/**
 * @description: 用户创建账户
 * @return {object}
 */
export function createFundCard(params) {
  return request({
    url: '/financialManagement/createFundCard',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取账户详情详情
 * @return {object}
 */
export function fundCardInfoById(params) {
  return request({
    url: '/financialManagement/fundCardInfoById',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取账户列表详情
 * @return {object}
 */
export function fundCardListByUserId(params) {
  return request({
    url: '/financialManagement/fundCardListByUserId',
    method: 'get',
    data: params
  })
}

/**
 * @description: 删除账户
 * @return {object}
 */
export function deleteFundCard(params) {
  return request({
    url: '/financialManagement/deleteFundCard',
    method: 'post',
    data: params
  })
}

/**
 * @description: 设置默认账户
 * @return {object}
 */
export function setDefaultAccount(params) {
  return request({
    url: '/financialManagement/setDefaultAccount',
    method: 'post',
    data: params
  })
}
